package com.china.juju.entity;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name="juju_msg"
    ,catalog="zutuan_prot"
)
public class JujuMsg  implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    public static final String ENTITY_NAME = "com.china.juju.entity.JujuMsg";
	public static final String TABLE_NAME="juju_msg";

    public static final String PK_Field = "id"; 
    public static final String PK_Method = "getId";  
	
	public static final String P_id = "id"; 
	public static final String P_msg = "msg"; 
	public static final String P_msgtype = "msgtype"; 
	public static final String P_createtime = "createtime"; 
	public static final String P_userid = "userid"; 
	public static final String P_senduserid = "senduserid"; 
	public static final String P_isread = "isread"; 
	public static final String P_deleflag = "deleflag"; 
	public static final String P_username = "username"; 
	public static final String P_sendusername = "sendusername"; 
	public static final String P_isreport = "isreport"; 
	public static final String P_reportmsg = "reportmsg"; 

     private String id;
     private String msg;
     private Integer msgtype;
     private Long createtime;
     private String userid;
     private String senduserid;
     private String isread;
     private Integer deleflag;
     private String username;
     private String sendusername;
     private Integer isreport;
     private String reportmsg;

    public JujuMsg() {
    }
	
    public JujuMsg(String id) {
        this.id = id;
    }
    public JujuMsg(String id, String msg, Integer msgtype, Long createtime, String userid, String senduserid, String isread, Integer deleflag, String username, String sendusername, Integer isreport, String reportmsg) {
        this.id = id;
        this.msg = msg;
        this.msgtype = msgtype;
        this.createtime = createtime;
        this.userid = userid;
        this.senduserid = senduserid;
        this.isread = isread;
        this.deleflag = deleflag;
        this.username = username;
        this.sendusername = sendusername;
        this.isreport = isreport;
        this.reportmsg = reportmsg;
    }
   
    @Id 
    @GeneratedValue( generator="paymentableGenerator")  
    @GenericGenerator(name="paymentableGenerator", strategy="uuid")  
    
    @Column(name="id", unique=true, nullable=false, length=36)
    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Column(name="msg", length=500)
    public String getMsg() {
        return this.msg;
    }
    
    public void setMsg(String msg) {
        this.msg = msg;
    }
    
    @Column(name="msgtype")
    public Integer getMsgtype() {
        return this.msgtype;
    }
    
    public void setMsgtype(Integer msgtype) {
        this.msgtype = msgtype;
    }
    
    @Column(name="createtime")
    public Long getCreatetime() {
        return this.createtime;
    }
    
    public void setCreatetime(Long createtime) {
        this.createtime = createtime;
    }
    
    @Column(name="userid", length=36)
    public String getUserid() {
        return this.userid;
    }
    
    public void setUserid(String userid) {
        this.userid = userid;
    }
    
    @Column(name="senduserid", length=36)
    public String getSenduserid() {
        return this.senduserid;
    }
    
    public void setSenduserid(String senduserid) {
        this.senduserid = senduserid;
    }
    
    @Column(name="isread", length=1)
    public String getIsread() {
        return this.isread;
    }
    
    public void setIsread(String isread) {
        this.isread = isread;
    }
    
    @Column(name="deleflag")
    public Integer getDeleflag() {
        return this.deleflag;
    }
    
    public void setDeleflag(Integer deleflag) {
        this.deleflag = deleflag;
    }
    
    @Column(name="username")
    public String getUsername() {
        return this.username;
    }
    
    public void setUsername(String username) {
        this.username = username;
    }
    
    @Column(name="sendusername")
    public String getSendusername() {
        return this.sendusername;
    }
    
    public void setSendusername(String sendusername) {
        this.sendusername = sendusername;
    }
    
    @Column(name="isreport")
    public Integer getIsreport() {
        return this.isreport;
    }
    
    public void setIsreport(Integer isreport) {
        this.isreport = isreport;
    }
    
    @Column(name="reportmsg")
    public String getReportmsg() {
        return this.reportmsg;
    }
    
    public void setReportmsg(String reportmsg) {
        this.reportmsg = reportmsg;
    }



    @Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}


